package com.gzhryc.html.dao.db;

import java.util.Date;

import com.gzhryc.jdbc.annotaion.Column;
import com.gzhryc.jdbc.annotaion.Id;
import com.gzhryc.jdbc.annotaion.Table;

@Table(name = "html_website_page")
public class WebsitePage {

	@Id
	protected Long id;

	@Column(name = "website_id")
	protected Long websiteId;

	@Column
	protected String path; // 访问路径

	@Column(name = "template_path")
	protected String templatePath; // 模板路径，用于访问

	@Column(name = "template_name")
	protected String templateName; // 模板名称，用于编辑模板

	@Column
	protected String title;

	@Column(length = 255)
	protected String description;

	@Column(length = 255)
	protected String keywords;

	@Column(name = "head_html", length = 2048)
	protected String headHtml;

	@Column(name = "foot_html", length = 2048)
	protected String footHtml;

	@Column(length = 2048, note = "页面Banner图JSON字符串")
	private String banners;

	@Column(name = "mobile_banners", length = 2048, note = "手机端页面Banner图JSON字符串")
	private String mobileBanners;

	@Column
	protected Integer sort;

	@Column(name = "parent_id")
	protected Long parentId;

	@Column(name = "update_date", autoUpdateTime = true)
	protected Date updateDate;
	
	@Column(name = "create_date")
	protected Date createDate;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public Long getWebsiteId() {
		return websiteId;
	}

	public void setWebsiteId(Long websiteId) {
		this.websiteId = websiteId;
	}

	public String getPath() {
		return path;
	}

	public void setPath(String path) {
		this.path = path;
	}

	public String getTemplateName() {
		return templateName;
	}

	public void setTemplateName(String templateName) {
		this.templateName = templateName;
	}

	public String getTemplatePath() {
		return templatePath;
	}

	public void setTemplatePath(String templatePath) {
		this.templatePath = templatePath;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getKeywords() {
		return keywords;
	}

	public void setKeywords(String keywords) {
		this.keywords = keywords;
	}

	public Long getParentId() {
		return parentId;
	}

	public void setParentId(Long parentId) {
		this.parentId = parentId;
	}

	public String getHeadHtml() {
		return headHtml;
	}

	public void setHeadHtml(String headHtml) {
		this.headHtml = headHtml;
	}

	public String getFootHtml() {
		return footHtml;
	}

	public void setFootHtml(String footHtml) {
		this.footHtml = footHtml;
	}

	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}

	public Date getUpdateDate() {
		return updateDate;
	}

	public void setUpdateDate(Date updateDate) {
		this.updateDate = updateDate;
	}

	public String getBanners() {
		return banners;
	}

	public void setBanners(String banners) {
		this.banners = banners;
	}

	public String getMobileBanners() {
		return mobileBanners;
	}

	public void setMobileBanners(String mobileBanners) {
		this.mobileBanners = mobileBanners;
	}
}
